package a01;

/**
 * @author Sven Eric Panitz
 */
import java.util.*;

public class PaintablesPanel extends SizedPanel {

    private static final long serialVersionUID = 1L;
    List<Paintable> pas;

    public PaintablesPanel(List<Paintable> pas) {
	this.pas = pas;
    }

    public void paintComponent(java.awt.Graphics g) {
	for (Paintable pa : pas)
	    pa.paintTo(g);
    }
}
